Skip to content

Use static string with fail!() and remove fail!(fmt!()) #6357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

dotdash
Copy link
Contributor

@dotdash dotdash commented May 9, 2013

fail!() used to require owned strings but can handle static strings
now. Also, it can pass its arguments to fmt!() on its own, no need for
the caller to call fmt!() itself.

@dotdash
Copy link
Contributor Author

dotdash commented May 9, 2013

Oops. Fixed a failing test case after @graydon had already r+'d, didn't know that github throws away everything on a changed commit :-( Only change from the previous one is in src/test/run-fail/assert-eq-macro-fail.rs

@brson
Copy link
Contributor

brson commented May 9, 2013

Delightful cleanups! 🐤

@dotdash
Copy link
Contributor Author

dotdash commented May 10, 2013

Rebased due to merge conflicts

@dotdash
Copy link
Contributor Author

dotdash commented May 13, 2013

Will currently cause conflicts with PRs in bors' pending queue...

@bstrie
Copy link
Contributor

bstrie commented May 13, 2013

@dotdash sorry about that! I've given it a high priority so it'll get built next, assuming it survives that first pull...

@bstrie
Copy link
Contributor

bstrie commented May 13, 2013

@dotdash :( Well it looks like the next two pulls in the queue wouldn't conflict with this, if you can manage to update this branch in the next hour or so I'll run it through again.

dotdash and others added 2 commits May 14, 2013 16:36
fail!() used to require owned strings but can handle static strings
now. Also, it can pass its arguments to fmt!() on its own, no need for
the caller to call fmt!() itself.
bors added a commit that referenced this pull request May 14, 2013
fail!() used to require owned strings but can handle static strings
now. Also, it can pass its arguments to fmt!() on its own, no need for
the caller to call fmt!() itself.
@bors bors closed this May 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants